﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.Web
{
    /// <summary>
    /// 路由
    /// </summary>
    public class RouteAttribute : Attribute
    {
        /// <summary>
        /// 路由模板(eg:[Route("api/v1/[controller]")])
        /// </summary>
        public string Template { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="template">路由模板</param>
        public RouteAttribute(string template)
        {
            this.Template = template;
        }
    }
}
